from setuptools import setup, Extension
from setuptools import find_packages
from glob import glob
import os

# 找到 .so 文件
so_files = glob("calculator/*.so")

setup(
    name="calculator",
    version="0.1.0",
    author="aiit",
    author_email="aiit@email.com",
    description="A closed-source calculator module",
    long_description=open("README.md").read(),
    long_description_content_type="text/markdown",
    packages=find_packages(),
    package_data={"calculator": [os.path.basename(f) for f in so_files]},
    include_package_data=True,
    zip_safe=False,
    classifiers=[
        "Programming Language :: Python :: 3",
        "Operating System :: OS Independent",
    ],
    python_requires=">=3.6",
)
